﻿using PowerHub.MES.DTO.BasicData.DTO;
using PowerHub.MES.DTO.BasicData.QueryDto;
using PowerHub.MES.Entities.BasicData;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IServices.IBasic
{
    /// <summary>
    /// 菜单接口层
    /// </summary>
    public interface IBasicData_MenuInfoServices
    {
        /// <summary>
        /// 获取菜单列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<BasicData_MenuInfoDTOs>>> GetBasicData_MenuInfoListAsync(QueryBasicData_MenuInfoDTO query);

        /// <summary>
        /// 根据id获取菜单列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<List<BasicData_MenuInfoDTOs>> GetBasicData_MenuInfoByIdListAsync(List<string> menuInfoId);

        /// <summary>
        /// 根据角色id获取已选菜单集合
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public Task<OperationResult<List<string>>> GetBasicData_RoleinfoById_MenuInfoListAsync(QueryBasicData_Roleinfo_MenuInfoDTO query);

        /// <summary>
        /// 获取选择菜单列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<List<BasicData_MenuInfo>>> GetBasicData_MenuInfoSelectListAsync(QueryBasicData_MenuInfoDTO query);


        /// <summary>
        /// 添加菜单
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> CreateBasicData_MenuInfoAsync(BasicData_MenuInfoDTO query);

        /// <summary>
        /// 批量删除菜单
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> BatchDeletionBasicData_MenuInfoAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> UpdateBasicData_MenuInfoAsync(BasicData_MenuInfoDTO query);
    }
}
